package com.itheima.dianming.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.dianming.pojo.domain.StuInterfaceTestLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface StuInterfaceTestLogMapper extends BaseMapper<StuInterfaceTestLog> {

    @Select("select * from tb_stu_interface_test_log" +
            " where stu_id = #{stuId} and project_id=#{projectId} order by step desc limit 1")
    StuInterfaceTestLog selectByStuId(@Param("stuId") Long stuId,
                                      @Param("projectId") Long projectId);
}
